package bupt.xixi.enumeration;

import lombok.*;

@AllArgsConstructor
@Getter
public enum RpcError {

    SERVICE_INVOCATION_FAILURE("服务器调用失败"),
    SERVICE_NOT_FOUND("找不到对应的服务"),
    SERVICE_NOT_IMPLEMENT_ANY_INTERFACE("注册的服务未实现接口"),
    UNKNOWN_PROTOCOL("未知的协议包"),
    UNKNOWN_SERIALIZER("未知的序列化器"),
    UNKNOWN_PACKAGE_TYPE("未知的数据包"),
    UNKNOWN_LOADER_BALANCER_TYPE("未知的负载均衡器"),
    FAILED_TO_CONNECT_TO_REGISTRY_PROVIDER("连接服务中心失败"),
    FAILED_REGISTRY_SERVICE("服务注册失败"),
    FAILED_TO_DISCOVER_SERVICE("获取服务失败");
    private final String message;
}
